package calao.contact;

import calao.contact.client.Group;
import calao.storage.Field;
import calao.storage.Sequence;
import calao.storage.ObjectTable;

class GroupDB {

	static final ObjectTable<Group> TABLE = 
		new ObjectTable<Group>("calao.contact.Group", new GroupBinding()); 

	static final Sequence ID_SEQUENCE = new Sequence("calao.contact.GroupId");
	
	public static final Field<Integer> ID = 
		TABLE.createField("id", Field.INTEGER);	

	public static final Field<String> NAME = 
		TABLE.createField("name", Field.STRING);	

	public static final Field<String> DESCRIPTION = 
		TABLE.createField("description", Field.STRING);	

	static {
		TABLE.createPrimaryKeyIndex(ID);
	}
	
}
